package com.zhixing.web.api.controller;

import com.zhixing.web.api.annotation.Log;
import com.zhixing.web.api.dataobject.untils.ResultVoUtil;
import com.zhixing.web.api.dataobject.vo.ResultVO;
import com.zhixing.web.common.utils.DateUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author dzh
 * @version 1.0.0.05020
 * <p>project: d-blog</p>
 * <p>created time: 2022/05/05 15:32</p>
 * <p>describe: 系统健康检查</p>
 * <p>remarks: </p>
 **/
@RestController
public class HealthController {


    @GetMapping("/health")
    @Log("系统运行")
    public ResultVO getStudentList() {

        String time = DateUtil.getCurrentTime();

        return ResultVoUtil.success("当前时间：" + time);
    }
}
